package com.zmn.oms.dubbo.interfaces.statistics;

import com.zmn.common.dto2.ResponseDTO;
import com.zmn.oms.common.dro.statistics.UserOrderWarrantyStatDRO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * 类描述：
 *
 * @author liuyufan
 * @date 2021/12/3
 */
@Api(
        value = "订单保修卡统计",
        tags = {"订单保修卡统计"}
)
public interface StatOrderWarrantyRemoteService {
    @ApiOperation(
            value = "根据手机号统计保修卡信息",
            response = ResponseDTO.class,
            tags = {"订单保修卡统计"}
    )
    ResponseDTO<UserOrderWarrantyStatDRO> getUserOrderWarrantyStatByPhone(@NotNull(message = "手机号不能为空") String phone);


    @ApiOperation(
            value = "根据用户ID统计在保订单数量",
            response = ResponseDTO.class,
            tags = {"订单保修卡统计"}
    )
    ResponseDTO<Long> countInWarrantyOrderByUserIdList(@NotNull(message = "用户ID列表不能为空") List<Long> userIdList);
}
